package br.ita.trucocearense.server.core.jpa;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class JPAUtil {

	private static EntityManagerFactory emf;
	
	static {
		emf = Persistence.createEntityManagerFactory("trucocearense");
	}

	public static EntityManager getEntityManager() {
		return emf.createEntityManager();
	}

}